package com.coin.dao.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TradeFlowExample {
    protected String orderByClause;

    protected boolean distinct;

    private String tableId;

    protected List<Criteria> oredCriteria;

    public TradeFlowExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public String getTableId() {
        return tableId;
    }

    public void setTableId(String tableId) {
        this.tableId = tableId;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andBusinessTypeIsNull() {
            addCriterion("business_type is null");
            return (Criteria) this;
        }

        public Criteria andBusinessTypeIsNotNull() {
            addCriterion("business_type is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessTypeEqualTo(Integer value) {
            addCriterion("business_type =", value, "businessType");
            return (Criteria) this;
        }

        public Criteria andBusinessTypeNotEqualTo(Integer value) {
            addCriterion("business_type <>", value, "businessType");
            return (Criteria) this;
        }

        public Criteria andBusinessTypeGreaterThan(Integer value) {
            addCriterion("business_type >", value, "businessType");
            return (Criteria) this;
        }

        public Criteria andBusinessTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("business_type >=", value, "businessType");
            return (Criteria) this;
        }

        public Criteria andBusinessTypeLessThan(Integer value) {
            addCriterion("business_type <", value, "businessType");
            return (Criteria) this;
        }

        public Criteria andBusinessTypeLessThanOrEqualTo(Integer value) {
            addCriterion("business_type <=", value, "businessType");
            return (Criteria) this;
        }

        public Criteria andBusinessTypeIn(List<Integer> values) {
            addCriterion("business_type in", values, "businessType");
            return (Criteria) this;
        }

        public Criteria andBusinessTypeNotIn(List<Integer> values) {
            addCriterion("business_type not in", values, "businessType");
            return (Criteria) this;
        }

        public Criteria andBusinessTypeBetween(Integer value1, Integer value2) {
            addCriterion("business_type between", value1, value2, "businessType");
            return (Criteria) this;
        }

        public Criteria andBusinessTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("business_type not between", value1, value2, "businessType");
            return (Criteria) this;
        }

        public Criteria andBusinessIdIsNull() {
            addCriterion("business_id is null");
            return (Criteria) this;
        }

        public Criteria andBusinessIdIsNotNull() {
            addCriterion("business_id is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessIdEqualTo(Integer value) {
            addCriterion("business_id =", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdNotEqualTo(Integer value) {
            addCriterion("business_id <>", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdGreaterThan(Integer value) {
            addCriterion("business_id >", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("business_id >=", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdLessThan(Integer value) {
            addCriterion("business_id <", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdLessThanOrEqualTo(Integer value) {
            addCriterion("business_id <=", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdIn(List<Integer> values) {
            addCriterion("business_id in", values, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdNotIn(List<Integer> values) {
            addCriterion("business_id not in", values, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdBetween(Integer value1, Integer value2) {
            addCriterion("business_id between", value1, value2, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdNotBetween(Integer value1, Integer value2) {
            addCriterion("business_id not between", value1, value2, "businessId");
            return (Criteria) this;
        }

        public Criteria andAmountIsNull() {
            addCriterion("amount is null");
            return (Criteria) this;
        }

        public Criteria andAmountIsNotNull() {
            addCriterion("amount is not null");
            return (Criteria) this;
        }

        public Criteria andAmountEqualTo(BigDecimal value) {
            addCriterion("amount =", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotEqualTo(BigDecimal value) {
            addCriterion("amount <>", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThan(BigDecimal value) {
            addCriterion("amount >", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("amount >=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThan(BigDecimal value) {
            addCriterion("amount <", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("amount <=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountIn(List<BigDecimal> values) {
            addCriterion("amount in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotIn(List<BigDecimal> values) {
            addCriterion("amount not in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount not between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andOutMemberIdIsNull() {
            addCriterion("out_member_id is null");
            return (Criteria) this;
        }

        public Criteria andOutMemberIdIsNotNull() {
            addCriterion("out_member_id is not null");
            return (Criteria) this;
        }

        public Criteria andOutMemberIdEqualTo(Integer value) {
            addCriterion("out_member_id =", value, "outMemberId");
            return (Criteria) this;
        }

        public Criteria andOutMemberIdNotEqualTo(Integer value) {
            addCriterion("out_member_id <>", value, "outMemberId");
            return (Criteria) this;
        }

        public Criteria andOutMemberIdGreaterThan(Integer value) {
            addCriterion("out_member_id >", value, "outMemberId");
            return (Criteria) this;
        }

        public Criteria andOutMemberIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("out_member_id >=", value, "outMemberId");
            return (Criteria) this;
        }

        public Criteria andOutMemberIdLessThan(Integer value) {
            addCriterion("out_member_id <", value, "outMemberId");
            return (Criteria) this;
        }

        public Criteria andOutMemberIdLessThanOrEqualTo(Integer value) {
            addCriterion("out_member_id <=", value, "outMemberId");
            return (Criteria) this;
        }

        public Criteria andOutMemberIdIn(List<Integer> values) {
            addCriterion("out_member_id in", values, "outMemberId");
            return (Criteria) this;
        }

        public Criteria andOutMemberIdNotIn(List<Integer> values) {
            addCriterion("out_member_id not in", values, "outMemberId");
            return (Criteria) this;
        }

        public Criteria andOutMemberIdBetween(Integer value1, Integer value2) {
            addCriterion("out_member_id between", value1, value2, "outMemberId");
            return (Criteria) this;
        }

        public Criteria andOutMemberIdNotBetween(Integer value1, Integer value2) {
            addCriterion("out_member_id not between", value1, value2, "outMemberId");
            return (Criteria) this;
        }

        public Criteria andOutMemberTypeIsNull() {
            addCriterion("out_member_type is null");
            return (Criteria) this;
        }

        public Criteria andOutMemberTypeIsNotNull() {
            addCriterion("out_member_type is not null");
            return (Criteria) this;
        }

        public Criteria andOutMemberTypeEqualTo(Integer value) {
            addCriterion("out_member_type =", value, "outMemberType");
            return (Criteria) this;
        }

        public Criteria andOutMemberTypeNotEqualTo(Integer value) {
            addCriterion("out_member_type <>", value, "outMemberType");
            return (Criteria) this;
        }

        public Criteria andOutMemberTypeGreaterThan(Integer value) {
            addCriterion("out_member_type >", value, "outMemberType");
            return (Criteria) this;
        }

        public Criteria andOutMemberTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("out_member_type >=", value, "outMemberType");
            return (Criteria) this;
        }

        public Criteria andOutMemberTypeLessThan(Integer value) {
            addCriterion("out_member_type <", value, "outMemberType");
            return (Criteria) this;
        }

        public Criteria andOutMemberTypeLessThanOrEqualTo(Integer value) {
            addCriterion("out_member_type <=", value, "outMemberType");
            return (Criteria) this;
        }

        public Criteria andOutMemberTypeIn(List<Integer> values) {
            addCriterion("out_member_type in", values, "outMemberType");
            return (Criteria) this;
        }

        public Criteria andOutMemberTypeNotIn(List<Integer> values) {
            addCriterion("out_member_type not in", values, "outMemberType");
            return (Criteria) this;
        }

        public Criteria andOutMemberTypeBetween(Integer value1, Integer value2) {
            addCriterion("out_member_type between", value1, value2, "outMemberType");
            return (Criteria) this;
        }

        public Criteria andOutMemberTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("out_member_type not between", value1, value2, "outMemberType");
            return (Criteria) this;
        }

        public Criteria andOutMemberAccountIsNull() {
            addCriterion("out_member_account is null");
            return (Criteria) this;
        }

        public Criteria andOutMemberAccountIsNotNull() {
            addCriterion("out_member_account is not null");
            return (Criteria) this;
        }

        public Criteria andOutMemberAccountEqualTo(Integer value) {
            addCriterion("out_member_account =", value, "outMemberAccount");
            return (Criteria) this;
        }

        public Criteria andOutMemberAccountNotEqualTo(Integer value) {
            addCriterion("out_member_account <>", value, "outMemberAccount");
            return (Criteria) this;
        }

        public Criteria andOutMemberAccountGreaterThan(Integer value) {
            addCriterion("out_member_account >", value, "outMemberAccount");
            return (Criteria) this;
        }

        public Criteria andOutMemberAccountGreaterThanOrEqualTo(Integer value) {
            addCriterion("out_member_account >=", value, "outMemberAccount");
            return (Criteria) this;
        }

        public Criteria andOutMemberAccountLessThan(Integer value) {
            addCriterion("out_member_account <", value, "outMemberAccount");
            return (Criteria) this;
        }

        public Criteria andOutMemberAccountLessThanOrEqualTo(Integer value) {
            addCriterion("out_member_account <=", value, "outMemberAccount");
            return (Criteria) this;
        }

        public Criteria andOutMemberAccountIn(List<Integer> values) {
            addCriterion("out_member_account in", values, "outMemberAccount");
            return (Criteria) this;
        }

        public Criteria andOutMemberAccountNotIn(List<Integer> values) {
            addCriterion("out_member_account not in", values, "outMemberAccount");
            return (Criteria) this;
        }

        public Criteria andOutMemberAccountBetween(Integer value1, Integer value2) {
            addCriterion("out_member_account between", value1, value2, "outMemberAccount");
            return (Criteria) this;
        }

        public Criteria andOutMemberAccountNotBetween(Integer value1, Integer value2) {
            addCriterion("out_member_account not between", value1, value2, "outMemberAccount");
            return (Criteria) this;
        }

        public Criteria andInMemberIdIsNull() {
            addCriterion("in_member_id is null");
            return (Criteria) this;
        }

        public Criteria andInMemberIdIsNotNull() {
            addCriterion("in_member_id is not null");
            return (Criteria) this;
        }

        public Criteria andInMemberIdEqualTo(Integer value) {
            addCriterion("in_member_id =", value, "inMemberId");
            return (Criteria) this;
        }

        public Criteria andInMemberIdNotEqualTo(Integer value) {
            addCriterion("in_member_id <>", value, "inMemberId");
            return (Criteria) this;
        }

        public Criteria andInMemberIdGreaterThan(Integer value) {
            addCriterion("in_member_id >", value, "inMemberId");
            return (Criteria) this;
        }

        public Criteria andInMemberIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("in_member_id >=", value, "inMemberId");
            return (Criteria) this;
        }

        public Criteria andInMemberIdLessThan(Integer value) {
            addCriterion("in_member_id <", value, "inMemberId");
            return (Criteria) this;
        }

        public Criteria andInMemberIdLessThanOrEqualTo(Integer value) {
            addCriterion("in_member_id <=", value, "inMemberId");
            return (Criteria) this;
        }

        public Criteria andInMemberIdIn(List<Integer> values) {
            addCriterion("in_member_id in", values, "inMemberId");
            return (Criteria) this;
        }

        public Criteria andInMemberIdNotIn(List<Integer> values) {
            addCriterion("in_member_id not in", values, "inMemberId");
            return (Criteria) this;
        }

        public Criteria andInMemberIdBetween(Integer value1, Integer value2) {
            addCriterion("in_member_id between", value1, value2, "inMemberId");
            return (Criteria) this;
        }

        public Criteria andInMemberIdNotBetween(Integer value1, Integer value2) {
            addCriterion("in_member_id not between", value1, value2, "inMemberId");
            return (Criteria) this;
        }

        public Criteria andInMemberTypeIsNull() {
            addCriterion("in_member_type is null");
            return (Criteria) this;
        }

        public Criteria andInMemberTypeIsNotNull() {
            addCriterion("in_member_type is not null");
            return (Criteria) this;
        }

        public Criteria andInMemberTypeEqualTo(Integer value) {
            addCriterion("in_member_type =", value, "inMemberType");
            return (Criteria) this;
        }

        public Criteria andInMemberTypeNotEqualTo(Integer value) {
            addCriterion("in_member_type <>", value, "inMemberType");
            return (Criteria) this;
        }

        public Criteria andInMemberTypeGreaterThan(Integer value) {
            addCriterion("in_member_type >", value, "inMemberType");
            return (Criteria) this;
        }

        public Criteria andInMemberTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("in_member_type >=", value, "inMemberType");
            return (Criteria) this;
        }

        public Criteria andInMemberTypeLessThan(Integer value) {
            addCriterion("in_member_type <", value, "inMemberType");
            return (Criteria) this;
        }

        public Criteria andInMemberTypeLessThanOrEqualTo(Integer value) {
            addCriterion("in_member_type <=", value, "inMemberType");
            return (Criteria) this;
        }

        public Criteria andInMemberTypeIn(List<Integer> values) {
            addCriterion("in_member_type in", values, "inMemberType");
            return (Criteria) this;
        }

        public Criteria andInMemberTypeNotIn(List<Integer> values) {
            addCriterion("in_member_type not in", values, "inMemberType");
            return (Criteria) this;
        }

        public Criteria andInMemberTypeBetween(Integer value1, Integer value2) {
            addCriterion("in_member_type between", value1, value2, "inMemberType");
            return (Criteria) this;
        }

        public Criteria andInMemberTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("in_member_type not between", value1, value2, "inMemberType");
            return (Criteria) this;
        }

        public Criteria andInMemberAccountIsNull() {
            addCriterion("in_member_account is null");
            return (Criteria) this;
        }

        public Criteria andInMemberAccountIsNotNull() {
            addCriterion("in_member_account is not null");
            return (Criteria) this;
        }

        public Criteria andInMemberAccountEqualTo(Integer value) {
            addCriterion("in_member_account =", value, "inMemberAccount");
            return (Criteria) this;
        }

        public Criteria andInMemberAccountNotEqualTo(Integer value) {
            addCriterion("in_member_account <>", value, "inMemberAccount");
            return (Criteria) this;
        }

        public Criteria andInMemberAccountGreaterThan(Integer value) {
            addCriterion("in_member_account >", value, "inMemberAccount");
            return (Criteria) this;
        }

        public Criteria andInMemberAccountGreaterThanOrEqualTo(Integer value) {
            addCriterion("in_member_account >=", value, "inMemberAccount");
            return (Criteria) this;
        }

        public Criteria andInMemberAccountLessThan(Integer value) {
            addCriterion("in_member_account <", value, "inMemberAccount");
            return (Criteria) this;
        }

        public Criteria andInMemberAccountLessThanOrEqualTo(Integer value) {
            addCriterion("in_member_account <=", value, "inMemberAccount");
            return (Criteria) this;
        }

        public Criteria andInMemberAccountIn(List<Integer> values) {
            addCriterion("in_member_account in", values, "inMemberAccount");
            return (Criteria) this;
        }

        public Criteria andInMemberAccountNotIn(List<Integer> values) {
            addCriterion("in_member_account not in", values, "inMemberAccount");
            return (Criteria) this;
        }

        public Criteria andInMemberAccountBetween(Integer value1, Integer value2) {
            addCriterion("in_member_account between", value1, value2, "inMemberAccount");
            return (Criteria) this;
        }

        public Criteria andInMemberAccountNotBetween(Integer value1, Integer value2) {
            addCriterion("in_member_account not between", value1, value2, "inMemberAccount");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}